package com.example.administrator.exkotlin.ui.fragment.news

import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.administrator.exkotlin.R
import com.example.administrator.exkotlin.ui.fragment.BaseFragment
import kotlinx.android.synthetic.main.news_content_fragment.*

class NewsContentFragment : BaseFragment() {

    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        Log.i(javaClass.simpleName, "onCreateView")
        return inflater?.inflate(R.layout.news_content_fragment, container, false)
    }

    fun loadNews(news: News) {
        tv_title.text=news.titel
        tv_content.text=news.content
    }

}